/**
 * Created by coder on 2018/3/27.
 */
const {injectBabelPlugin} = require('react-app-rewired');
//const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

module.exports = function override(config,env){
	config = injectBabelPlugin(['import', { libraryName: 'antd', libraryDirectory: 'es', style: 'css' }], config);
    //config['plugins'].push(new BundleAnalyzerPlugin());
	if(env === 'production'){
		config.output.publicPath = './';
	}

	return config;
};